import { getEnv } from '@/storage/global'

let server_url: string = ''

const env: string = getEnv()

switch (env) {
  case 'dev': // 开发用
    server_url = 'http://192.168.3.96:999' // 龙工
    break
  case 'dev1':
    server_url = 'http://192.168.3.90:999' // 蒋工
    break
  case 'yd':
    server_url = 'https://ydpms.yslpms.com' // 要跟随正式改成pms.yslpms
    break
  default:
    server_url = '错误env'
}

export type server_type = 'server'
export const baseURL: string = server_url + '/api'
export const platform: server_type = 'server'
